<template>
  <div class="grid-view">
    <el-card class="box-card">
      <div slot="header" class="clearfix">
        <span>{{headerTitle}}</span>
        <div class="time-filter">
          <!-- <SelectFilter v-for="filter in filterList" :key="filter.field"   :data="filter.filterOptions" :label="filter.label" v-model="form[filter.field]" clearable @input="handleFilter" /> -->
        </div>
        <el-button style="float: right; padding: 3px 0" type="text"
          >操作</el-button
        >
      </div>
      <div v-for="(item,i) in data" :key="i" class="text item">
         <span class="item-content">{{item.title}}</span>
         <span class="item-time"> {{item.dateTime}}</span>
      </div>
    </el-card>
  </div>
</template>

<script>
import { gridviewMixin } from "@/mixins/gridviewMixin";
import SelectFilter from '@/components/Filter/SelectFilter.vue'

export default {
  name: "GridView",
  mixins: [gridviewMixin],
  inject:['GridContainer'],
  components: {
    SelectFilter
  },
  
};
</script>

<style lang="less" scoped>
.grid-view {
  width: 100%;
}

.item {
  display: flex;
  justify-content: space-between;
  align-items: center;
  &-content {
    padding: 4px 0;
  }

  &-time {
    flex-shrink: 0;
    width: 100px;
  }
}

/deep/ .el-card {
    height: 100%;
  .el-card__header {
    display: flex;
    align-items: center;
    
    height: 40px;
    padding: 0px 20px;

    .clearfix {
      display: flex;
      justify-content: space-between;
      width: 100%;
    }

  }

  .el-card__body {
    height: 200px;
    overflow: auto;
  }
}

.time-filter {
  &>div {
    margin: 0 10px;
  }
}
</style>